<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:0px;border:0px">
  <t:datagrid name="bnsGroupList" fitColumns="false" title="" actionUrl="bnsGroupController.do?datagrid" idField="id" fit="true" queryMode="group">
   <t:dgCol title="主键"  field="id"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="群组分类"  field="groupClassId"  queryMode="single" dictionary="bns_group_class,id,group_name"  width="120"></t:dgCol>
   <t:dgCol title="群组名称"  field="groupName"   query="true" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="群主"  field="groupLeader"    queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="帖子数量"  field="articleAccount"    queryMode="single"  width="80"></t:dgCol>
   <t:dgCol title="成员数量"  field="memberAccount"    queryMode="single"  width="80"></t:dgCol>
   <t:dgCol title="群组积分"  field="groupIntegral"   query="true" queryMode="group"  width="80"></t:dgCol>
   <t:dgCol title="是否推荐"  field="isRecommend"    queryMode="single"  width="80"></t:dgCol> 
   <t:dgToolBar title="查看" icon="icon-search" url="bnsGroupController.do?goUpdate" funname="detail"></t:dgToolBar>
  </t:datagrid>
  </div>
 </div>
 <script src = "webpage/com/buss/group/bnsGroupList.js"></script>		
 <script type="text/javascript">
 $(document).ready(function(){
 		//给时间控件加上样式
 			$("#bnsGroupListtb").find("input[name='createDate']").attr("class","Wdate").attr("style","height:20px;width:90px;").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
 			$("#bnsGroupListtb").find("input[name='updateDate']").attr("class","Wdate").attr("style","height:20px;width:90px;").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
 }); 

 function getGroups(){
 	var rowsData = $("#bnsGroupList").datagrid("getChecked"); 
 	if(rowsData.length==0){ 
 		return "";
 	} 
 	return rowsData[0];
 }
 
 </script>